﻿<%@ Page Title="Detail View Work Order" Language="C#" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="true" CodeFile="DetailView_Workorder.aspx.cs" Inherits="admin_DeatilView_Workorder" %>

<asp:Content ID="Head" ContentPlaceHolderID="head" runat="Server">
    <link href="../styles/admin.css" rel="stylesheet" type="text/css" />

    <script src="../javascripts/jquery-1.4.3.min.js" type="text/javascript"></script>

    <script src="../javascripts/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $(".datepicker").datepicker({ dateFormat: 'dd/mm/yy' });
        });  
    </script>

    <script runat="server">
        protected void eidtbutton(Object sender, EventArgs e)
        {

        }
        protected void eidtbutton_check(Object sender, EventArgs e)
        {

            workorderTextbox.ReadOnly = false;
            dateRecorded_tb.ReadOnly = false;
            //statusCheckbox.Enabled = true;
            check_editButton.Visible = false;
            check_updatebutton.Visible = true;
            Detail_tb.ReadOnly = false;
            dateRecorded_tb.ReadOnly = false;

        }
     
    </script>

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="top_menu">
        <div id="help_button">
            help
        </div>
                  <div id="logout">
            <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="../Default.aspx"
                OnLoggingOut="LoginStatus1_LoggingOut" />
        </div>
    </div>
    <div id="page_title">
        ADMINISTRATION
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div id="left_content">
        <div class="menu">
            <ul>
                <li><a href="Home.aspx">Home</a></li>
                <li><a href="Mng_Client.aspx">Manage Clients</a></li>
                <li><a href="Mng_Site.aspx">Manage Sites</a></li>
                <li><a href="Mng_Machine.aspx">Manage Machines</a></li>
                <li><a href="Mng_Comp.aspx">Manage Components</a></li>
                <li><a href="Mng_Report.aspx">Manage Reports</a></li>
                <li><a href="#" class="current">Search for Work Order</a></li>
                <li><a href="Mng_FaultsRecom.aspx">Manage Faults Recommendation</a></li>
            </ul>
        </div>
    </div>
    <!-- end of left content -->
    <div id="right_content">
        <div class="content_area">
            <h2>
                View Work Order
            </h2>
            <table>
                <tr>
                    <td class="label">
                        <asp:Label ID="Label1" runat="server">W/O #:
                        </asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="workorderTextbox" runat="server" ReadOnly="true" CssClass="fields"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Date Recorded:
                    </td>
                    <td>
                        <asp:TextBox ID="dateRecorded_tb" class="datepicker" ReadOnly="true" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Machine:
                    </td>
                    <td>
                        <asp:TextBox ID="MachineName_tb" ReadOnly="true" runat="server" CssClass="fields1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Detail:
                    </td>
                    <td>
                        <asp:TextBox ID="Detail_tb" runat="server" ReadOnly="true" CssClass="fields1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Completed:
                    </td>
                    <td>
                        <asp:DropDownList ID="status_dropdownlist" runat="server" CssClass="dropDownList">
                            <asp:ListItem Text="Completed" Value="1">
                            </asp:ListItem>
                            <asp:ListItem Text="Outstanding" Value="0"></asp:ListItem>
                        </asp:DropDownList>
                        <%--<asp:CheckBox ID="statusCheckbox" Enabled=false Text="" runat="server" />--%>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="check_updatebutton" runat="server" Visible="false" Text="UPDATE"
                            OnClick="updatebutton_clicked" CssClass="buttons" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="check_editButton" runat="server" Text="EDIT" OnClick="eidtbutton_check"
                            CssClass="buttons" />
                    </td>
                </tr>
            </table>
        </div>
        <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/client/SearchResults.aspx"
            OnClick="LinkButton1_Click" CssClass="backbtn">Return To Results</asp:LinkButton>
    </div>
    <!-- end of right content -->
</asp:Content>
